/**
 * LispFileWriter.java
 *
 * Fecha de creación: Mar 12, 2012,12:57:37 AM
 *
 * Autor: José Ignacio Rivero Dávila
 */
package util;

import java.io.BufferedWriter;
import java.io.FileWriter;

public class LispFileWriter {

    public static final String FILENAME = "output.lsp";

    public LispFileWriter() {
    }
    public void writeOut(String str){
        try {
            FileWriter fstream = new FileWriter(FILENAME);
            BufferedWriter output = new BufferedWriter(fstream);
            output.write(str);
            output.close();
        } catch (Exception e) {
            System.err.println("Error: " + e.getMessage());
        }
    }
    public static void main(String[] args) {
        LispFileWriter lsWriter = new LispFileWriter();
        lsWriter.writeOut("Hello world!");
    }
}
